import request from '@/utils/request'

// 1、获取三级分类列表一级列表 GET /admin/product/getCategory1
export const reqGetCategory1List = () => {
  return request.get(`/admin/product/getCategory1`)
}

// 2、请求2级分类  GET /admin/product/getCategory2/{category1Id}
export const reqGetCategory2List = (category1Id) => {
  return request.get(`/admin/product/getCategory2/${category1Id}`)
}

// 3、请求3级分类  GET /admin/product/getCategory3/{category2Id}
export const reqGetCategory3List = (category2Id) => {
  return request.get(`/admin/product/getCategory3/${category2Id}`)
}
